﻿<UserControl x:Class="ImageThumbnailList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <UserControl.Resources>

        <ItemsPanelTemplate x:Key="Col1">
            <UniformGrid Columns="1" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col2">
            <UniformGrid Columns="2" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col3">
            <UniformGrid Columns="3" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col4">
            <UniformGrid Columns="4" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col5">
            <UniformGrid Columns="5" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col6">
            <UniformGrid Columns="6" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col7">
            <UniformGrid Columns="7" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col8">
            <UniformGrid Columns="8" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col9">
            <UniformGrid Columns="9" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col10">
            <UniformGrid Columns="10" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col11">
            <UniformGrid Columns="11" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col12">
            <UniformGrid Columns="12" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col13">
            <UniformGrid Columns="13" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col14">
            <UniformGrid Columns="14" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col15">
            <UniformGrid Columns="15" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col16">
            <UniformGrid Columns="16" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col17">
            <UniformGrid Columns="17" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col18">
            <UniformGrid Columns="18" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col19">
            <UniformGrid Columns="19" IsItemsHost="True"/>
        </ItemsPanelTemplate>
        <ItemsPanelTemplate x:Key="Col20">
            <UniformGrid Columns="20" IsItemsHost="True"/>
        </ItemsPanelTemplate>


    </UserControl.Resources>

    <DockPanel>
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Visible">
            <ListView Name="lvw" ItemsPanel="{StaticResource Col3}" SelectionMode="Single" MinWidth="150" MinHeight="100">
            </ListView>
        </ScrollViewer>
    </DockPanel>

</UserControl>
